package com.yunban.project.statistic.controller;

import com.yunban.project.statistic.model.vo.StatisticsResp;
import com.yunban.project.statistic.service.StatisticsService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: lijiajun
 * @date: 2024-11-29
 * @version: 1.0
 */
@RestController
@Tag(name = "统计")
@RequestMapping("/statistics-api")
public class StatisticsController {

    @Resource
    private StatisticsService statisticsService;

    @GetMapping("/mine")
    @Operation(summary = "获取我的统计信息")
    public StatisticsResp getStatistics() {
        return this.statisticsService.getMyStatistics();
    }
}
